package com.amigo.online.consumer.search.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.amigo.online.common.core.response.Response;
import com.amigo.online.common.param.dto.query.MerchantGoodsDto;
import com.amigo.online.common.param.dto.query.Searchparam;

@FeignClient(name = "amigo-online-provider-search")
public interface SearchSevice {
	

	@RequestMapping(value = "/search/searchResult", method = RequestMethod.POST)
	public ResponseEntity<Response> getSearchResult(Searchparam searchparam);

	
	@RequestMapping(value = "/search/getHotWord", method = RequestMethod.GET)
	public ResponseEntity<Response> getHotWord();

	@RequestMapping(value = "/search/merchant", method = RequestMethod.POST)
	public ResponseEntity<Response> merchantSearch(Searchparam searchparam);

	@RequestMapping(value = "/search/merchantGoods", method = RequestMethod.POST)
	public ResponseEntity<Response> merchantGoodsSearch(MerchantGoodsDto searchparam);
}
